<?php if(!empty($categories)){?>
<div class="widget Menu">
    <ul class="menu-widget">
        <?php foreach ($categories as $category) { ?>
            <?php if ($category['blogs_category_id'] == $blogs_category_id) { ?>
              <li> <a href="<?php echo $category['href']; ?>" class="active3"><?php echo $category['name']; ?></a> </li>
            <?php } else { ?>
               <li> <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a> </li>
            <?php } ?>
        <?php }?>
    </ul>
</div>
<?php }?>
